import api from "./index.js"
// 登录
export const getlogin = (params) => api.post('users/login', params)
export const getZhu = (params) => api.post('users/register', params)
export const getProfiles = (params) => api.get('profiles', params)

export const getAdd = (params) => api.post('profiles/add', params)
export const getDelete = (params) => api.delete(`profiles/delete/${params.id}`, params)

export const getEdit = (params) => api.post(`profiles/edit/${params._id}`, params)

export const getUser = (params) => api.get('users/current', params)